package com.whj.apipassenger.remote;

import com.whj.internalcommon.dto.ResponseResult;
import com.whj.internalcommon.response.NumberCodeResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: wanghaijun
 * @Date: 2022/12/27 - 12 - 27 - 12:27 
 * @Description: com.whj.apipassenger.remote 远程调用验证码的接口
 */

@FeignClient("service-verificationcode")
public interface ServiceVerificationClient {

    @RequestMapping(method = RequestMethod.GET, value = "/numberCode/{size}")
    ResponseResult<NumberCodeResponse> getNumberCode(@PathVariable("size") int size);
}


